package com.gxa.merchant.controller;

import com.gxa.common.R;
import com.gxa.merchant.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ShopController {

    @Autowired
    private ShopService shopService;

    @GetMapping("/findShopById")
    public R findShopByIdController(Integer id){
        System.out.println(id);
        return shopService.findShopByIdService(id);
    }
}
